# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=cjexploiter
pkgver=2.d1caa21
pkgrel=1
epoch=1
pkgdesc='Drag and Drop ClickJacking exploit development assistance tool.'
groups=('blackarch' 'blackarch-webapp')
arch=('any')
url='https://github.com/enddo/CJExploiter'
license=('LGPL3')
depends=()
makedepends=('git')
#source=("$pkgname::git+https://github.com/enddo/CJExploiter.git")
source=("git+https://github.com/BlackArch/$pkgname.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -dm 755 "$pkgdir/usr/share/$pkgname"

  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
  install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"

  rm README.md LICENSE

  cp -a * "$pkgdir/usr/share/$pkgname/"
}

